//
//  UMLDiagram.m
//  ModuleTesting
//
//  Created by duc nguyen van on 8/25/11.
//  Copyright 2011 STU. All rights reserved.
//

#import "UMLDiagram.h"


@implementation UMLDiagram
@synthesize shapes;
@synthesize image;

-(id)init{
	self = [super init];
	if (self) {
		shapes = [[NSMutableArray alloc] init];
		image = @"";
	}
	return self;
}

-(id)initWithCoder:(NSCoder *)aDecoder{
	self = [super init];
	if (self) {
		self.shapes = [aDecoder decodeObjectForKey:@"shapes"];
		self.image = [aDecoder decodeObjectForKey:@"image"];
	}
	return self;
}

-(void)encodeWithCoder:(NSCoder *)aCoder{
	[aCoder encodeObject:shapes forKey:@"shapes"];
	[aCoder encodeObject:image forKey:@"image"];
}

@end
